/*
 * @Author       : Hejh(3010733382@qq.com)
 * @Version      : V1.0
 * @Date         : 2024-01-29 12:45:29
 * @Description  : 章节相关的一些类型
 */
import type { PageRes } from './commom'

export interface ChapterReq {
  page?: number
  pageSize?: number
  pid?: string
  examId?:string
}

// Chapter返回实体
export interface ChapterRes {
  id: string
  name: string
  pid:string
  examId:string
  ParentChapter:any
  Exam:any
  createTime:string
}

// 分页Chapter返回实体
export type ChapterPageRes = PageRes<ChapterRes>

// 章节添加请求实体类型
export interface ChapterCreateReq {
  name: string
  pid:string
  examId:string
}

// 章节修改请求实体
export interface ChapterUpdateReq {
  chapterId?: string
  name: string
  pid:string
  examId:string
}

export type ChapterRowData = ChapterRes
